import React from 'react';
import { Result, Button } from 'antd';

const NotFound = (props) => {
    return (
        <Result
            status="404"
            title="404"
            subTitle="Sorry, the page you visited does not exist."
            extra={
                <div>
                    <Button type="primary" onClick={param => props.history.push('/admin')}>返回首页</Button>
                    <Button type="primary" onClick={param => props.history.goBack()}>返回上一页</Button>
                </div>
            }
        />
    );
};

export default NotFound;
